<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/templates/mainTemplate.xhtml">
	<ui:define name="pageTitle">#{msg.userSearch}</ui:define>
	<ui:define name="pageHeader">#{msg.userSearch}</ui:define>
	<ui:define name="maincontent">
		<h:form>
			<h:panelGrid id="searchError">
				<h:messages showDetail="true" showSummary="false"
					style="color: red; font-weight: bold;" />
			</h:panelGrid>
			<h:panelGrid columns="2">
				<h:inputText id="searchPictureInput"
					value="#{searchBean.searchPictureInput}"></h:inputText>
				<h:commandButton value="${msg.searchPicture}">
					<f:ajax render="searchResultPicture"
						execute="searchPictureInput" />
				</h:commandButton>
			</h:panelGrid>
			<h:panelGrid id="searchResultPicture">
				<t:graphicImage value="#{searchBean.searchedPicture}"
					rendered="#{searchBean.searchedPicture != null}" />
			</h:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>
</html>
